def moveZeroes(nums: list[int]) -> list[int]:
    """
    Do not return anything, modify nums in-place instead.
    """
    count, i, pointer = 0, 0, 0

    while i < len(nums):
        if nums[i] == 0:
            count += 1
            i += 1
            continue

        nums[pointer] = nums[i]
        pointer += 1
        i += 1

    while pointer < len(nums):
        nums[pointer] = 0
        pointer += 1

    return nums
